<!-- add.html -->
{% extends "base.html" %}

{% block content %}
<h2 class="mb-4">新增用户</h2>
<form method="POST">
    <div class="mb-3">
        <label class="form-label">姓名</label>
        <input type="text" class="form-control" name="name" required>
    </div>
    <div class="mb-3">
        <label class="form-label">邮箱</label>
        <input type="email" class="form-control" name="email" required>
    </div>
    <div class="mb-3">
        <label class="form-label">年龄</label>
        <input type="number" class="form-control" name="age">
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
    <a href="{{ url_for('index') }}" class="btn btn-secondary">取消</a>
</form>
{% endblock %}
